package day04;
import java.util.Random;
public class Demo1 {
    public static void main(String[] args) {
        Random rd = new Random();
        int num1 = rd.nextInt(5);
        System.out.println(num1);


        int num =(int)(Math.random()*5);
        System.out.println(num);
    }
}
